import java.sql.SQLException;

import javax.swing.*;

import tool.DatabaseManager;
import view.dialog.LoginDialog;

public class Run {
    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> {
            JDialog dialog;
			try {
				dialog = new LoginDialog(DatabaseManager.getConnection());
	            dialog.setVisible(true);
			} catch (ClassNotFoundException | SQLException e) {
				e.printStackTrace();
			}
        });
    }
}
